package xkp.lesson.springboot_shiro.service;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import xkp.lesson.springboot_shiro.dao.RoleDao;
import xkp.lesson.springboot_shiro.entity.Role;

import javax.annotation.Resource;
import java.util.List;

@Slf4j
@Service
public class RoleService {
    @Resource
    private RoleDao roleDao;

    public List<Role> selectByUserId(Integer userId){
        return roleDao.selectRolesByUserId(userId);
    }
}
